<!DOCTYPE html>
<html lang="en">
<admintpl file="header" />
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form method="post">
<div class="wrap">
    <div>
        <!-- Nav tabs -->
        <ul class="nav nav-tabs" role="tablist">
            <li role="presentation" class="active"><a href="#liebiao" aria-controls="liebiao" role="tab" data-toggle="tab">列表</a></li>
            <li role="presentation"><a href="#home" aria-controls="home" role="tab" data-toggle="tab">行程亮点</a></li>
            <li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab">形成摘要</a></li>
            <li role="presentation"><a href="#messages" aria-controls="messages" role="tab" data-toggle="tab">详细流程</a></li>
            <li role="presentation"><a href="#settings" aria-controls="settings" role="tab" data-toggle="tab">费用</a></li>
        </ul>

        <!-- Tab panes -->
        <div class="tab-content">
            <div role="tabpanel" class="tab-pane" id="home">
                <!-- 加载编辑器的容器 -->
                <script id="container" name="content" type="text/plain">
        这里写你的初始化内容
    </script>
                <!-- 配置文件 -->
                <script type="text/javascript" src="/utf8-php/ueditor.config.js"></script>
                <!-- 编辑器源码文件 -->
                <script type="text/javascript" src="/utf8-php/ueditor.all.js"></script>
                <!-- 实例化编辑器 -->
                <script type="text/javascript">
                    var ue = UE.getEditor('container');
                </script>
            </div>
            <div role="tabpanel" class="tab-pane" id="profile">...</div>
            <div role="tabpanel" class="tab-pane" id="messages">...</div>
            <div role="tabpanel" class="tab-pane" id="settings">...</div>


            <div role="tablist" class="tab-pane active" id="liebiao">
    <form class="well form-search" method="post" action="{:U('Indexadmin/Countrylist')}">
        ID：
        <input type="text" name="Country_id" style="width: 100px;" value="{:I('request.Country_id')}" placeholder="请输入用户ID">
        关键字：
        <input type="text" name="Country" style="width: 200px;" value="{:I('request.Country')}" placeholder="用户名/昵称/邮箱">
        <input type="submit" class="btn btn-primary" value="搜索" />
        <a class="btn btn-danger" href="{:U('Indexadmin/Countrylist')}">清空</a>
        <a class="btn btn-danger" href="#" style="float: right">添加</a>
    </form>
    <form method="post" class="js-ajax-form">
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th align="center">ID</th>
                <th>游学系列</th>
                <th>出发城市</th>
                <th>线路类型</th>
                <th>价格</th>
                <th>状态</th>
                <th align="center">操作</th>
            </tr>
            </thead>
            <tbody>
            <php>$user_statuses=array("0"=>L('USER_STATUS_BLOCKED'),"1"=>L('USER_STATUS_ACTIVATED'),"2"=>L('USER_STATUS_UNVERIFIED'));</php>
            <foreach name="list" item="vo">
                <tr>
                    <td align="center">{$vo.id}</td>
                    <td>{$vo['Country_id']?$vo['Country_id']:($vo['mobile']?$vo['mobile']:L('THIRD_PARTY_USER'))}</td>
                    <td>{$vo['Country']?$vo['Country']:L('NOT_FILLED')}</td>
                    <td>{$user_statuses[$vo['user_status']]}</td>
                    <td align="center">
                        <neq name="vo.id" value="1">
                            <a href="{:U('indexadmin/ban',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="{:L('BLOCK_USER_CONFIRM_MESSAGE')}">{:L('BLOCK_USER')}</a>|
                            <a href="{:U('indexadmin/cancelban',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="{:L('ACTIVATE_USER_CONFIRM_MESSAGE')}">{:L('ACTIVATE_USER')}</a>
                            <else/>
                            <a style="color: #ccc;">{:L('BLOCK_USER')}</a>|
                            <a style="color: #ccc;">{:L('ACTIVATE_USER')}</a>
                        </neq>
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>
        <div class="pagination">{$page}</div>
    </form>
        </div>
        </div>
<script src="__PUBLIC__/js/common.js"></script>
    <div style="text-align: center">
    <a type="button" class="btn btn-success">确定</a>
    </div>
</form>
</body>
</html>